package com.ibeeking.found.common.constants;

import org.springframework.http.HttpHeaders;

/**
 * @ClassName NounConstant
 * @Description 名词常量
 * @Author ibeeking
 * @Date 2020-11-05 13:42
 **/
public class HeaderNounConstant extends HttpHeaders {

    /**
     * 客户端id
     */
    public static final String CLIENT_ID = "client_id";
    /**
     * 客户端secret
     */
    public static final String CLIENT_SECRET = "client_secret";

    /**
     * 用户相关
     */
    /**
     * 用户id
     */
    public static final String USER_ID = "user_id";
    /**
     * 用户名
     */
    public static final String USER_CODE = "user_code";
    /**
     * 是否是演示用户
     */
    public static final String AM_DEMO_USER = "am_demo_user";
    /**
     * 用户姓名
     */
    public static final String USER_NAME = "name";

    /**
     * 租户相关
     */
    /**
     * 租户id
     */
    public static final String TENANT_ID = "tenant_id";
    /**
     * 集成积木report的租户id
     */
    public static final String JM_TENANT_ID = "X-Tenant-Id";
    /**
     * 租户相关
     */
    /**
     * 租户industry
     */
    public static final String INDUSTRY = "industry";

    /**
     * 店铺
     */
    public static final String SHOP_ID = "shop_id";

    /**
     * requestId
     */
    public static final String TRACE_ID = "trace_id";


    /**
     * 小程序相关
     */
    public static final String REGISTER = "register";

    /**
     * 小程序appId
     */
    public static final String APP_ID = "app_id";

    /**
     * 企微CorpId
     */
    public static final String CORP_ID = "corp_id";

    /**
     * 企微CorpId
     */
    public static final String AGENT_ID = "agent_id";

    /**
     * 企微用户id
     */
    public static final String OPEN_ID = "open_id";

    /**
     * 认证相关
     */
    /**
     * JWT前缀
     */
    public static final String JWT_PREFIX = "bearer ";
    /**
     * jti
     */
    public static final String JWT_JTI = "jti";

    /**
     * authorities
     */
    public static final String JWT_AUTHORITIES = "authorities";
    /**
     * payload
     */
    public static final String JWT_PAYLOAD = "payload";
    /**
     * ROLE_
     */
    public static final String JWT_AUTHORITY_PREFIX = "ROLE_";
    /**
     * authorities
     */
    public static final String AUTHORITY_CLAIM_NAME = "authorities";


    /**
     * 真实ip
     */
    public static final String X_FORWARDED_FOR = "x-forwarded-for";

    public static final String LOGIN_ROLE = "login_role";

    public static final String LOGIN_SYSTEM = "login_system";

    public static final String JUMP = "jump";

}
